import request from "@/utils/request";

export const getDeptList = params => {
    return request({
      url: '/sys/dept/list', 
      params
    })
} 

export const addDept = data => {
    return request({
      url: '/sys/dept/add', 
      method: 'POST',
      data
    })
} 
  
export const getDeptDeail = params => {
    return request({
      url: '/sys/dept/detail', 
      params
    })
} 

export const editDept = data => {
    return request({
      url: '/sys/dept/edit', 
      method: 'POST',
      data
    })
} 

export const deleteDept = data => {
    return request({
      url: '/sys/dept/delete', 
      method: 'POST',
      data
    })
} 